package com.ftg.learn.sm.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ftg.learn.sm.mapper.IBook;
import com.ftg.learn.sm.pojo.Book;



@Service
public class BookService {

	@Autowired
	IBook dMapper;
	
	public List<Book> showAll(){
		return dMapper.showAll();
	}
	
	public List<Book> findone(String bno){
		return dMapper.findone(bno);
	}
	
	public int update(Book book) {
		return dMapper.update(book);
	}
	
	public int delete(String bno) {
		return dMapper.delete(bno);
	}
	
	public int save(Book book) {
		return dMapper.save(book);
	}
	
	
}

